package com.yan.demo;

public class Test {
        public static void main(String[] args) {
            String expression = "1 + 2 * 3 - 4 / 5";
            String[] values = expression.split("\\s*[+\\-*/]\\s*");

            for (String value : values) {
                System.out.println(value);
            }
        }
}
